package cn.mesmile.design.factory.abstracts;

/**
 * @author zb
 * @date 2021/11/28 22:17
 * @Description
 */
public class FactoryProducer {

    public static OrderFactory getFactory(String type){
        if (type.equals("wechat")){
            return new WechatOrderFactory();
        }else if (type.equals("ali")){
            return new AliOrderFactory();
        }
        return null;
    }
}
